package com.blueocean_health.care.management.domain.dto;

import java.util.ArrayList;
import java.util.List;

import com.blueocean_health.care.management.em.RoleTypeEnum;

/**
* 角色授权 DTO
* @author huyanqiu
* @date 2018年3月27日 下午3:37:31
* @version 版本号：1.0
*/
public class RoleAuthDto {
	
	// 角色id
	private Integer id;
	// 角色名称
	private String name;
	// 角色类型
	private String type;
	// 角色类型名称
	private String typeName;
	// 组织id
	private String orgId;
	// 组织名称
	private String orgName;
	// 状态： 1：正常 2：禁用  3：删除
	private String status;
	// 选中用户id
	private List<String> principals = new ArrayList<>();
	// 选中用户名称
	private List<String> principalNames = new ArrayList<>();
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
		setTypeName(RoleTypeEnum.valueOf("_"+getType()).getVal());
	}
	public String getTypeName() {
		return typeName;
	}
	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
	public List<String> getPrincipals() {
		return principals;
	}
	public void setPrincipals(List<String> principals) {
		this.principals = principals;
	}
	public List<String> getPrincipalNames() {
		return principalNames;
	}
	public void setPrincipalNames(List<String> principalNames) {
		this.principalNames = principalNames;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getOrgId() {
		return orgId;
	}
	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}
	public String getOrgName() {
		return orgName;
	}
	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}

}
